﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using Eneta.Portal.Common;

namespace Eneta.Portal.Admin.WebParts
{
    public class AdminCompanyListWebPart : WebPart
    {
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            try
            {
                var control = Page.LoadControl("~/_controltemplates/AdminCompanyListControl.ascx");
                Controls.Add(control);
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                throw;
            }
        }

        public override void RenderBeginTag(HtmlTextWriter writer)
        {
            return;
        }
        public override void RenderEndTag(HtmlTextWriter writer)
        {
            return;
        }
    }
}
